package com.java.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.common.utils.PageUtils;
import com.java.common.utils.Query;
import com.java.mapper.OrderItemsDao;
import com.java.pojo.OrderItems;
import com.java.service.OrderItemsService;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("orderItemsService")
public class OrderItemsServiceImpl extends ServiceImpl<OrderItemsDao, OrderItems> implements OrderItemsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderItems> page = this.page(
                new Query<OrderItems>().getPage(params),
                // 拼接查询条件
                new LambdaQueryWrapper<OrderItems>()
        );

        return new PageUtils(page);
    }

}